import 'package:auto_route/auto_route.dart';
import 'package:lyps_music/router/index.gr.dart';

@AutoRouterConfig()
class AppRouter extends RootStackRouter {
  @override
  RouteType get defaultRouteType => const RouteType.material();

  @override
  List<AutoRoute> get routes => [
        AutoRoute(page: HomeRoute.page, initial: true, children: [
          AutoRoute(page: LineListRoute.page, initial: true),
        ]),
        CustomRoute(
          page: MusicInfoRoute.page,
          path: '/info',
          fullscreenDialog: true,
          transitionsBuilder: TransitionsBuilders.slideBottom
        ),
      ];
}
